package com.company.corelib.facade;

import java.util.List;

import com.company.corelib.dao.CategoryDAO;
import com.company.corelib.model.Category;

public class CategoryFacade {
	CategoryDAO dao = new CategoryDAO();
	public List<Category> getAllCategory(){
		return dao.getAllCategory();
	}
	public String create(String code, String name, String description){
		return dao.create(code, name, description);
	}
	public String update(Category category) {
		return dao.update(category);
	}
	public Category getCategoryById(String id){
		return dao.getCategoryById(id);
	}
	public String delete(String id) {
		return dao.delete(id);
	}
}
